const resetAll = (dispatch) => {
  // 重置状态

  const data = {
    list: [],
    detailList: [],
    totalCount: 0,
    totalPrice: 0,
    allChecked: false
  }

  Object.keys(data).map(item=>{
    dispatch({
      type: item,
      [item]: data[item]
    })
    return item
  })
}

export default resetAll
